from django.contrib import admin
from import_export.admin import ImportExportModelAdmin
from .models import stu, comp, test

@admin.register(stu)
class StuAdmin(ImportExportModelAdmin):
    list_display = ('name', 'stuid', 'academy', 'stuclass', 'age', 'gender')
    search_fields = ('name', 'stuid')

@admin.register(comp)
class CompAdmin(ImportExportModelAdmin):
    list_display = ('name', 'type')
    search_fields = ('name',)

@admin.register(test)
class TestAdmin(ImportExportModelAdmin):
    list_display = ('uname', 'upwd')
    search_fields = ('uname',)

#登录时/后台主界面显示的名称
admin.site.site_header = '大学生就业信息系统后台'
admin.site.site_header = '大学生就业信息系统后台'
#title显示的名称
admin.site.site_title = '就业平台管理后台'